<template>
	<view :data-theme="theme">
		<skeleton :show="showSkeleton" :isNodes="isNodes" ref="skeleton" loading="chiaroscuro" selector="skeleton"
			bgcolor="#FFF"></skeleton>
		<view class="product-con skeleton" :style="{visibility: showSkeleton ? 'hidden' : 'visible'}" ref="toptop">
			<view class='navbar' :class="opacity>0.6?'bgwhite':''">
				<view class='navbarH' :style='"height:"+navH+"rpx;"'>
					<view class='navbarCon acea-row' :style="{ paddingRight: navbarRight + 'px' }">
						<!-- #ifdef MP -->
						<view class="select_nav flex justify-center align-center" id="home"
							:style="{ top: homeTop + 'rpx' }">
							<text class="iconfont icon-fanhui2 px-20" @tap="returns"></text>
							<text class="iconfont icon-gengduo5 px-20" @tap="showNav"></text>
							<text class="nav_line"></text>
						</view>
						<!-- #endif -->
						<!-- #ifdef H5 || APP-PLUS -->
						<view id="home" class="home acea-row row-center-wrapper iconfont icon-xiangzuo h5_back"
							:class="opacity>0.5?'on':''" :style="{ top: homeTop + 'rpx' }" v-if="returnShow"
							@tap="returns">
						</view>
						<!-- #endif -->
						<!-- 						<navigator url="/pages/goods_search/index" class="input" hover-class="none"
							:style="{ top: homeTop + 'rpx' }">
							搜索商品</navigator> -->
						<navigator url="/pages/goods_search/index" class="input" hover-class="none"
							:style="{ top: homeTop + 'rpx' }">
							<text class="iconfont icon-sousuo"></text>搜索商品
						</navigator>
					</view>
				</view>
			</view>
			<view class="dialog_nav" v-show="currentPage" :style="{ top: navH + 'rpx' }">
				<view class="dialog_nav_item" :class="item.after" v-for="(item,index) in selectNavList" :key="index"
					@click="linkPage(item.url)">
					<text class="iconfont" :class="item.icon"></text>
					<text class="pl-20">{{item.name}}</text>
				</view>
			</view>
			<view class="detail_container">
				<scroll-view :scroll-top="scrollTop" scroll-y='true' scroll-with-animation="true"
					:style='"height:"+height+"px;margin-top:"+navH+"rpx"' @scroll="scroll">
					<view id="past0">
						<productConSwiper class="skeleton-rect" :imgUrls="sliderImage" :videoline="videoLink"
							@videoPause="videoPause"></productConSwiper>
						<view class="" style="margin-top: 0rpx;">
							<view class='wrapper mb30 borRadius15'>
								<view class="box_4">
									<view class="block_9">
										<view class="text-wrapper_2">
											<text lines="1" class="text_7">¥</text>
											<text lines="1" class="text_8">{{attr.productSelect.price}}</text>
										</view>
										<view class="box_6" v-if="attr.productSelect.daoshouprice!=null">
											<view class="text-wrapper_3">
												<text lines="1" class="text_9">热销款券后</text>
												<text lines="1" class="text_10">¥</text>
											</view>
											<text lines="1" class="text_11">{{attr.productSelect.daoshouprice}}</text>
										</view>
									</view>
									<view v-if="fqStr !== '无' && fqStr !== ''"
										style="display: flex;font-size: 20rpx;height: 36rpx;line-height: 36rpx;margin-top: 12rpx;">
										<view
											style="border-radius: 2px 0 0 2px;background: #FE5C2D;color: white;padding-left: 10rpx;padding-right: 10rpx;">
											<text>分期免息</text>
										</view>
										<view
											style="border-radius: 0 2px 2px 0;background: #D8B375;color: white;padding-left: 10rpx;padding-right: 10rpx;">
											<text>{{getMaxFq(fqStr)}}期免息</text>
										</view>
									</view>
									<view class="block_10" v-if="attr.productSelect.daoshouprice!=null">
										<text lines="1"
											class="text_12">满{{defaultCoupon[0].minPrice}}减{{defaultCoupon[0].money}}</text>
										<view class="image-text_11" @click='couponTap'>
											<text lines="1" class="text-group_1">领券</text>
											<image :src="newIcons.redArrow" class="thumbnail_7"></image>
										</view>
									</view>
									<view class="shibie">
										{{useridimg}}
									</view>
								</view>
								<view class="box_15">
									<view class="text-group_10">
										<text lines="1" decode="true" class="text_13">{{productInfo.storeName}}</text>
										<text lines="1" decode="true"
											class="text_14">销量&nbsp;{{Math.floor(productInfo.sales) + Math.floor(productInfo.ficti) || 0}}{{productInfo.unitName || ''}}</text>
									</view>
									<view class="image-text_12" @click="listenerActionSheet">
										<image :src="newIcons.share" class="label_4"></image>
									</view>
								</view>
							</view>
						</view>
						<view class="pad30" style="margin-top: 0rpx;">
							<view class="box_9">
								<view class="block_2" @click="selecAttr">
									<text lines="1" class="text_15">{{attrTxt}}</text>
									<text lines="1" class="text_16">{{attrValue}}</text>
									<image :src="newIcons.greyArrow" class="thumbnail_6"></image>
								</view>
								<view class="block_3" v-if="skuArr.length > 1" @click="selecAttr">
									<view class="list_2">
										<image :src="item.image" v-for="(item,index) in skuArr.slice(0,4)" :key="index"
											class="attrImg"></image>
									</view>
									<text lines="1" class="text_17">共{{skuArr.length}}种规格可选</text>
								</view>
								<view class="section_5"></view>

								<view class="section_8">
									<image mode="widthFix" :src="newIcons.zhengpin" class="image_1"></image>
								</view>
							</view>
							<view class='userEvaluation' id="past1">
								<view class='title acea-row row-between-wrapper'
									:style="replyCount==0?'border-bottom-left-radius:14rpx;border-bottom-right-radius:14rpx;':''">
									<view>用户评价<i>({{replyCount}})</i></view>
									<navigator class='praise' hover-class='none'
										:url='"/pages/users/goods_comment_list/index?productId="+id'>
										<view style="display: flex;line-height: 24rpx;"> <i>好评</i>&nbsp;<text
												class='font_color px-12'>{{replyChance || 0}}%</text>
											<!-- <text class='iconfont icon-jiantou'></text> -->
											<image :src="newIcons.greyArrow" class="thumbnail_4"></image>
										</view>
									</navigator>
								</view>
								<block v-if="replyCount">
									<userEvaluation :reply="reply" :showReply="showReply"></userEvaluation>
								</block>
							</view>
							<!-- 优品推荐 -->
							<view class="superior borRadius14" v-show="navList && navList.indexOf('推荐') !== -1"
								id="past2222">
								<view class="title acea-row row-center-wrapper">
									<image
										src="https://pic.mae.vip//crmebimage/public/maintain/2024/07/24/b1ba17803c264ee6baac2da9a4c2db79dji0o0f5ma.png">
									</image>
									<view class="titleTxt">优品推荐</view>
									<image
										src="https://pic.mae.vip//crmebimage/public/maintain/2024/07/24/5a8a7e983d984f388c90bf10b57c74f8bqvnyylh6a.png">
									</image>
								</view>
								<view class="slider-banner banner">
									<swiper indicator-dots="true" :autoplay="autoplay" :circular="circular"
										:interval="interval" :duration="duration" indicator-color="#999"
										:indicator-active-color="indicatorBg" :style="'height:'+clientHeight+'px'">
										<swiper-item v-for="(item,indexw) in good_list" :key="indexw">
											<view class="list acea-row row-middle" :id="'list'+indexw">
												<view class="item" v-for="(val,indexn) in item.list" :key="indexn"
													@click="goDetail(val)">
													<view class="pictrue">
														<image :src="val.image"></image>
														<span class="pictrue_log pictrue_log_class"
															v-if="val.activityH5 && val.activityH5.type === '1'">秒杀</span>
														<span class="pictrue_log pictrue_log_class"
															v-if="val.activityH5 && val.activityH5.type === '2'">砍价</span>
														<span class="pictrue_log pictrue_log_class"
															v-if="val.activityH5 && val.activityH5.type === '3'">拼团</span>
													</view>
													<view class="name line1">{{val.storeName}}</view>
													<view class="money theme_price">¥{{val.price}}</view>
												</view>
											</view>
										</swiper-item>
										<!-- <view class="swiper-pagination" slot="pagination"></view> -->
									</swiper>
								</view>
							</view>
						</view>
					</view>
					<view class='product-intro' id="past2">
						<view class='title'>
							<image
								src="https://pic.mae.vip//crmebimage/public/maintain/2024/07/24/b1ba17803c264ee6baac2da9a4c2db79dji0o0f5ma.png">
							</image>
							<span class="sp">产品详情</span>
							<image
								src="https://pic.mae.vip//crmebimage/public/maintain/2024/07/24/5a8a7e983d984f388c90bf10b57c74f8bqvnyylh6a.png">
							</image>
						</view>
						<view class='conter'>
							<jyf-parser :html="description" ref="article" :tag-style="tagStyle"></jyf-parser>
						</view>
					</view>
					<view style='height:120rpx;'></view>
					<view @click.native="backTop" class="iconfont icon-fanhuidingbu1 toTop" v-show="scrollY > 1200">
					</view>
				</scroll-view>
			</view>
			<view class='footer acea-row row-between-wrapper'>
				<!-- #ifndef MP -->
				<view class="item skeleton-rect" @click="kefuClick">
					<view class="iconfont icon-kefu"></view>
					<view>客服</view>
				</view>
				<!-- #endif -->
				<block v-if="type === 'normal'">

					<view class="bnt acea-row skeleton-rect" v-if="attr.productSelect.stock <= 0">
						<form report-submit="true"><button class="buy bnts bg-color-hui" form-type="submit">已售罄</button>
						</form>
					</view>
					<view class="bnt acea-row skeleton-rect" v-else>
						<form @submit="goBuy" report-submit="true"><button class="buy bnts"
								form-type="submit">立即购买</button>
						</form>
					</view>
				</block>
				<view class="bnt bntVideo acea-row skeleton-rect"
					v-if="attr.productSelect.stock <= 0 && type === 'video'">
					<form report-submit="true"><button class="buy bnts bg-color-hui" form-type="submit">已售罄</button>
					</form>
				</view>
				<view class="bnt bntVideo acea-row skeleton-rect"
					v-if="attr.productSelect.stock > 0 && type === 'video'">
					<form @submit="goBuy" report-submit="true"><button class="buy bnts" form-type="submit">立即购买</button>
					</form>
				</view>
			</view>
			<shareRedPackets :sharePacket="sharePacket" @listenerActionSheet="listenerActionSheet"
				@showShare="showShare"></shareRedPackets>
			<!-- 组件 -->
			<productWindow ref="pWindow" v-if=" uid !== undefined && uid !== null && uid !== '' " :markQh="markQh"
				:useridimg="useridimg" :attr="attr" :isShow='1' :iSplus='1' @myevent="onMyEvent"
				@ChangeAttr="ChangeAttr" @ChangeAttrIndex="ChangeAttrIndex" @ChangeCartNum="ChangeCartNum"
				@attrVal="attrVal" @iptCartNum="iptCartNum" id='product-window' @getImg="showImg">
			</productWindow>
			<couponListWindow :coupon='coupon' :typeNum="couponDeaultType[0].useType"
				@ChangCouponsClone="ChangCouponsClone" @ChangCoupons="ChangCoupons"
				@ChangCouponsUseState="ChangCouponsUseState" @tabCouponType="tabCouponType"></couponListWindow>
			<!-- 分享按钮 -->
			<view class="generate-posters" :class="posters ? 'on' : ''">
				<view class="generateCon acea-row row-middle">
					<!-- #ifndef MP -->
					<button class="item" hover-class="none" v-if="weixinStatus === true" @click="H5ShareBox = true">
						<view class="pictrue">
							<image
								src="https://pic.mae.vip//crmebimage/public/maintain/2024/07/24/23a202eb9515404180fbc0bbcf2a8f28ieyjsmy1c8.png">
							</image>
						</view>
						<view class="">分享给好友</view>
					</button>
					<!-- #endif -->
					<!-- #ifdef H5 || MP -->
					<view class="item" @click="getpreviewImage">
						<view class="pictrue">
							<image
								src="https://pic.mae.vip//crmebimage/public/maintain/2024/07/24/525b30646d7544e281210dd91826765cjbce6h2578.png">
							</image>
						</view>
						<view class="">预览发图</view>
					</view>
					<!-- #endif -->
				</view>
				<view class="generateClose acea-row row-center-wrapper" @click="posterImageClose">取消</view>
			</view>
			<cus-previewImg ref="cusPreviewImg" :list="skuArr" @changeSwitch="changeSwitch"
				@shareFriend="listenerActionSheet" />
			<view class="mask" v-if="posters" @click="closePosters"></view>
			<view class="mask" v-if="canvasStatus"></view>
			<view class="mask_transparent" v-if="currentPage" @touchmove="hideNav" @click="hideNav()"></view>

			<!-- 海报展示 -->
			<view class='poster-pop' v-if="canvasStatus">
				<image :src='imagePath'></image>
			</view>
			<view class="canvas" v-else>
				<canvas style="width:750px;height:1190px;" canvas-id="firstCanvas"></canvas>
				<canvas canvas-id="qrcode" :style="{width: `${qrcodeSize}px`, height: `${qrcodeSize}px`}" />
			</view>
			<!-- 发送给朋友图片 -->
			<view class="share-box" v-if="H5ShareBox">
				<image
					src="https://pic.mae.vip//crmebimage/public/maintain/2024/07/24/ccfedfba2ffe448aa7bdd67fff0634e206c5eztw5d.png"
					@click="H5ShareBox = false"></image>
			</view>
		</view>
	</view>
</template>

<script>
	import uQRCode from '@/js_sdk/Sansnn-uQRCode/uqrcode.js'
	import store from '@/store';
	import {
		HTTP_H5_URL
	} from '@/config/app.js';
	import {
		spread
	} from "@/api/user";
	import {
		getProductDetail,
		collectAdd,
		collectDel,
		postCartAdd,
		getReplyList,
		getReplyConfig,
		getProductGood,
		getReplyProduct,
	} from '@/api/store.js';
	import {
		getCoupons,
		getLiveList
	} from '@/api/api.js';
	import {
		getCartCounts
	} from '@/api/order.js';
	import {
		toLogin
	} from '@/libs/login.js';
	import {
		mapGetters
	} from "vuex";
	import {
		imageBase64
	} from "@/api/public";
	import productConSwiper from '@/components/productConSwiper';
	import couponListWindow from '@/components/couponListWindow';
	import productWindow from '@/components/productWindow';
	import userEvaluation from '@/components/userEvaluation';
	import shareRedPackets from '@/components/shareRedPackets';
	import cusPreviewImg from '@/components/cus-previewImg/cus-previewImg.vue'
	import {
		silenceBindingSpread
	} from "@/utils";
	import parser from "@/components/jyf-parser/jyf-parser";
	import {
		computeUser
	} from "@/api/user.js";




	import {
		base64src
	} from '@/utils/base64src.js'
	import authorize from '@/components/Authorize';
	import {
		getQrcode,
		getZpbzDetails
	} from '@/api/api.js';




	let app = getApp();
	import {
		setThemeColor
	} from '@/utils/setTheme.js'
	import {
		Debounce
	} from '@/utils/validate.js'
	import Cache from '../../utils/cache';
	import animationType from '@/utils/animationType.js'
	import {
		fork
	} from 'child_process';
	export default {
		components: {
			productConSwiper,
			couponListWindow,
			productWindow,
			userEvaluation,
			shareRedPackets,
			cusPreviewImg,
			"jyf-parser": parser,
			// #ifdef MP
			authorize
			// #endif
		},
		data() {
			let that = this;
			return {
				showReply: 0,
				kefuTitle: '售前',
				showSkeleton: true, //骨架屏显示隐藏
				isNodes: 0, //控制什么时候开始抓取元素节点,只要数值改变就重新抓取
				//属性是否打开
				coupon: {
					coupon: false,
					type: 0,
					list: [],
					count: []
				},
				attrTxt: '请选择', //属性页面提示
				attrValue: '', //已选属性
				animated: false, //购物车动画
				id: 0, //商品id
				replyCount: 0, //总评论数量
				reply: [], //评论列表
				productInfo: {}, //商品详情
				productValue: [], //系统属性
				markQh: [],
				couponList: [], //优惠券
				cart_num: 1, //购买数量
				isAuto: false, //没有授权的不会自动授权
				isShowAuth: false, //是否隐藏授权
				isOpen: false, //是否打开属性组件
				actionSheetHidden: true,
				storeImage: '', //海报产品图
				PromotionCode: '', //二维码图片
				posterbackgd: 'https://pic.mae.vip//crmebimage/public/maintain/2024/07/24/d4029132bc9e4a0394d6ff260ce6e4f0bz79lk41ny.png',
				sharePacket: {
					isState: true, //默认不显示
					touchstart: false
				}, //分销商详细
				circular: false,
				autoplay: false,
				interval: 3000,
				duration: 500,
				clientHeight: "",
				systemStore: {}, //门店信息
				good_list: [],
				replyChance: 0,
				CartCount: 0,
				isDown: true,
				posters: false,
				weixinStatus: false,
				attr: {
					cartAttr: false,
					productAttr: [],
					productSelect: {}
				},
				description: '',
				navActive: 0,
				H5ShareBox: false, //公众号分享图片
				activityH5: [],
				retunTop: true, //顶部返回
				navH: "",
				navList: [],
				opacity: 0,
				scrollY: 0,
				topArr: [],
				toView: '',
				height: 0,
				heightArr: [],
				lock: false,
				scrollTop: 0,
				tagStyle: {
					img: 'width:100%;display:block;',
					table: 'width:100%',
					video: 'width:100%'
				},
				sliderImage: [],
				videoLink: '',
				qrcodeSize: 600,
				canvasStatus: false, //是否显示海报
				imagePath: '', //海报路径
				imgTop: '',
				errT: '',
				homeTop: 20,
				navbarRight: 0,
				userCollect: false,
				options: null,
				returnShow: true, //判断顶部返回是否出现
				type: "", //视频号普通商品类型
				theme: app.globalData.theme,
				indicatorBg: '',
				shareStatus: true,
				skuArr: [],
				currentPage: false,
				selectSku: {},
				selectSku11: '',
				selectSkuIndex11: '',
				selectNavList: [{
						name: '首页',
						icon: 'icon-shouye8',
						url: '/pages/index/index',
						after: 'dialog_after'
					},
					{
						name: '搜索',
						icon: 'icon-sousuo6',
						url: '/pages/goods_search/index',
						after: 'dialog_after'
					},
					{
						name: '购物车',
						icon: 'icon-gouwuche7',
						url: '/pages/order_addcart/order_addcart',
						after: 'dialog_after'
					},
					{
						name: '我的收藏',
						icon: 'icon-shoucang3',
						url: '/pages/users/user_goods_collection/index',
						after: 'dialog_after'
					},
					{
						name: '个人中心',
						icon: 'icon-gerenzhongxin1',
						url: '/pages/user/index'
					},
				],
				chatConfig: {
					consumer_hotline: '',
					telephone_service_switch: 'false'
				}, //客服配置
				defaultCoupon: [],
				couponDeaultType: [{
					useType: 0
				}],
				useridimg: '··········· ··········· ··········· ··········· ··········· ··········· ··········· ···········',
				isSelected: false,
				hasOrder: false,
				newIcons: {
					denghao: '',
					jianhao: '',
					greyArrow: '',
					redArrow: '',
					icon: '',
					zhengpin: '',
					share: '',
					priceBg: '',
					calcBg: '',
					check: '',
					bianzu: 'https://pic.mae.vip//crmebimage/public/maintain/2024/07/24/8c040f4c9ec14f02abd50d8e1b7ff14a5srnpkgfe2.png',
				},
				minimumPrice: '',
				fqStr: '',
			};
		},
		watch: {
			isLogin: {
				handler: function(newV, oldV) {
					let that = this;
					if (newV == true) {
						that.getCouponList();
						that.getCartCount();
					}
				},
				deep: true
			},
			productInfo: {
				handler: function() {
					this.$nextTick(() => {});
				},
				immediate: true
			}
		},
		computed: {
			...mapGetters(['isLogin', 'uid', 'chatUrl', 'token']),
		},
		onShow: function() {
			this.isSelected = false;
		},
		onLoad(options) {
			let that = this;

			getZpbzDetails({
				id: 81
			}).then(res => {
				//console.log(JSON.stringify(JSON.parse(res.data[0].field101)))
				let arr = JSON.parse(res.data[0].field101);
				for (let i = 0; i < arr.length; i++) {
					if (arr[i].name === '等号 (1).png') {
						this.newIcons.denghao = arr[i].sattDir;
					}
					if (arr[i].name === '减号 (1).png') {
						this.newIcons.jianhao = arr[i].sattDir;
					}
					if (arr[i].name === '矩形@2x.png') {
						this.newIcons.redArrow = arr[i].sattDir;
					}
					if (arr[i].name === '矩形@2x(1).png') {
						this.newIcons.greyArrow = arr[i].sattDir;
					}
					if (arr[i].name === '编组备份 2@2x.png') {
						this.newIcons.icon = arr[i].sattDir;
					}
					if (arr[i].name === '编组 5@2x.png') {
						this.newIcons.zhengpin = arr[i].sattDir;
					}
					if (arr[i].name === '编组 11@2x.png') {
						this.newIcons.share = arr[i].sattDir;
					}
					if (arr[i].name === '编组 27备份@2x.png') {
						this.newIcons.calcBg = arr[i].sattDir;
					}
					if (arr[i].name === '编组 4.jpg') {
						this.newIcons.priceBg = arr[i].sattDir;
					}
					if (arr[i].name === '形状备份@2x.png') {
						this.newIcons.check = arr[i].sattDir;
					}
				}
			});



			let str =
				'https://pic.mae.vip//crmebimage/public/content/2023/10/14/3b33cad771244cc7a7ce7b11f945b20egpky1ioqmc.jpg'
			let uuu = 'http' + str.slice(5, str.length);
			console.log('^^^^^^！！' + uuu)
			console.log('^^^^^^！！' + this.isLogin)
			console.log('^^^^^^！！' + this.uid)
			console.log('^^^^^^！！' + this.token)
			//console.log('！！' + Cache.get('LOGIN_STATUS_TOKEN'))
			//console.log('！！' + Cache.get('UID'))
			if (this.uid !== undefined && this.uid !== null && this.uid !== '') {
				var uidarr = this.uid.toString();
				var uidimg = "";
				for (var char = 0; char < uidarr.length; char++) {
					var one = parseInt(uidarr[char]);
					for (var i = 0; i < one + 2; i++) {
						uidimg += "·";
					}
					if (char < uidarr.length - 1) {
						uidimg += " ";
					}
				}
				this.useridimg = uidimg;
				//console.log('--------------------------------！' + this.useridimg)
			}
			this.options = options;

			var pages = getCurrentPages();
			that.returnShow = pages.length === 1 ? false : true;
			if (pages.length <= 1) {
				that.retunTop = false
			}
			that.navH = app.globalData.navHeight;
			that.$set(that, 'chatConfig', that.$Cache.getItem('chatConfig'));
			// #ifdef H5
			computeUser();
			// #endif

			that.$set(that, 'theme', that.$Cache.get('theme')); //用户从分享卡片进入的场景下获取主题色配置
			uni.getSystemInfo({
				success: function(res) {
					that.height = res.windowHeight
				},
			});
			if (!options.scene && !options.id) {
				this.showSkeleton = false;
				this.$util.Tips({
					title: '缺少参数无法查看商品'
				}, {
					url: '/pages/index/index'
				});
				return;
			}

			if (options.hasOwnProperty('id') || options.scene) {
				if (options.scene) { // 仅仅小程序扫码进入
					console.log("小程序扫码进入携带的参数：" + options.scene);
					let qrCodeValue = this.$util.getUrlParams(decodeURIComponent(options.scene));
					console.log("----" + qrCodeValue);
					let mapeMpQrCodeValue = this.$util.formatMpQrCodeDataDetail(qrCodeValue);
					// console.log("-------------"+JSON.stringify(mapeMpQrCodeValue))
					app.globalData.spread = mapeMpQrCodeValue.spread;

					this.id = mapeMpQrCodeValue.i;
					this.selectSkuIndex11 = mapeMpQrCodeValue.s.replaceAll(";", ",");

					console.log("查看decode结果：" + this.selectSkuIndex11)
					setTimeout(() => {
						spread(mapeMpQrCodeValue.spread).then(res => {}).catch(res => {})
					}, 2000)

				} else {
					this.id = options.id;
				}
				options.type == undefined || options.type == null ? that.type = 'normal' : that.type = options.type;
				that.$store.commit("PRODUCT_TYPE", that.type);
			}
			that.minimumPrice = options.price;
			console.log('++++++++++++++' + that.minimumPrice);
			this.getGoodsDetails();
			this.getCouponList();
			this.getCouponType();
			this.getProductReplyList();
			this.getProductReplyCount();
			this.getGoods();
			silenceBindingSpread();
			this.indicatorBg = setThemeColor();
		},
		onReady() {
			this.isNodes++;
		},
		methods: {
			toZpDetail() {
				uni.navigateTo({
					animationType: animationType.type,
					animationDuration: animationType.duration,
					url: '/pages/news_details/zpzp',
				})
			},
			kefuClick() {
				let that = this;

				let platform = uni.getSystemInfoSync().platform; //手机类型
				console.log(platform);
				if (platform == 'ios') {
					window.webkit.messageHandlers.openCode.postMessage("Hello");
				} else {
					//window.android.goWechat('goWechat');
					window.location.href = 'goWechat';
				}
			},
			goActivity: function(e) {
				let item = e;
				if (item.type === "1") {
					uni.navigateTo({
						url: `/pages/activity/goods_seckill_details/index?id=${item.id}`
					});
				} else if (item.type === "2") {
					uni.navigateTo({
						url: `/pages/activity/goods_bargain_details/index?id=${item.id}&startBargainUid=${this.uid}`
					});
				} else {
					uni.navigateTo({
						url: `/pages/activity/goods_combination_details/index?id=${item.id}`
					});
				}
			},
			/**
			 * 购物车手动填写
			 * 
			 */
			iptCartNum: function(e) {
				this.$set(this.attr.productSelect, 'cart_num', e ? e : 1);
			},
			// 后退
			returns: function() {
				uni.navigateBack()
			},
			showNav() {
				this.currentPage = !this.currentPage;
			},
			tap: function(index) {
				var id = "past" + index;
				var index = index;
				var that = this;
				this.$set(this, 'toView', id);
				this.$set(this, 'navActive', index);
				this.$set(this, 'lock', true);
				this.$set(this, 'scrollTop', index > 0 ? that.topArr[index] - (app.globalData.navHeight / 2) : that
					.topArr[index]);
			},
			scroll: function(e) {
				var that = this,
					scrollY = e.detail.scrollTop;
				var opacity = scrollY / 500;
				opacity = opacity > 1 ? 1 : opacity;
				that.$set(that, 'opacity', opacity);
				that.$set(that, 'scrollY', scrollY);
				if (that.lock) {
					that.$set(that, 'lock', false)
					return;
				}
				for (var i = 0; i < that.topArr.length; i++) {
					if (scrollY < that.topArr[i] - (app.globalData.navHeight / 2) + that.heightArr[i]) {
						that.$set(that, 'navActive', i)
						break
					}
				}
				that.$set(that.sharePacket, 'touchstart', true); //滑动屏幕时让分享气泡缩回
			},
			/*
			 *去商品详情页 
			 */
			goDetail(item) {
				if (!item.activityH5) {
					uni.redirectTo({
						url: '/pages/goods_details/index?id=' + item.id + "&price=" + item.price
					})
					return
				}
				if (item.activityH5.length == 0) {
					uni.redirectTo({
						url: '/pages/goods_details/index?id=' + item.id + "&price=" + item.price
					})
					return
				}
				// 砍价
				if (item.activityH5 && item.activityH5.type == 2) {
					uni.redirectTo({
						url: `/pages/activity/goods_bargain_details/index?id=${item.activityH5.id}&bargain=${this.uid}`
					})
					return
				}
				// 拼团
				if (item.activityH5 && item.activityH5.type == 3) {
					uni.redirectTo({
						url: `/pages/activity/goods_combination_details/index?id=${item.activityH5.id}`
					})
					return
				}
				// 秒杀
				if (item.activityH5 && item.activityH5.type == 1) {
					debugger
					uni.redirectTo({
						url: `/pages/activity/goods_seckill_details/index?id=${item.activityH5.id}`
					})
					return
				}
			},
			// 微信登录回调
			onLoadFun: function(e) {
				this.getCouponList();
				this.getCartCount();
			},
			ChangCouponsClone: function() {
				this.$set(this.coupon, 'coupon', false)
			},
			/**
			 * 购物车数量加和数量减
			 * 
			 */
			ChangeCartNum: function(changeValue) {
				//changeValue:是否 加|减
				//获取当前变动属性
				let productSelect = this.productValue[this.attrValue];
				//如果没有属性,赋值给商品默认库存
				if (productSelect === undefined && !this.attr.productAttr.length)
					productSelect = this.attr.productSelect;
				//无属性值即库存为0；不存在加减；
				if (productSelect === undefined) return;
				let stock = productSelect.stock || 0;
				let num = this.attr.productSelect;
				if (changeValue) {
					num.cart_num++;
					if (num.cart_num > stock) {
						this.$set(this.attr.productSelect, "cart_num", stock);
						this.$set(this, "cart_num", stock);
					}
				} else {
					num.cart_num--;
					if (num.cart_num < 1) {
						this.$set(this.attr.productSelect, "cart_num", 1);
						this.$set(this, "cart_num", 1);
					}
				}
			},
			attrVal(val) {
				this.$set(this.attr.productAttr[val.indexw], 'index', this.attr.productAttr[val.indexw].attrValues[val
					.indexn]);
				//console.log("valvalvalvalvalval-----------   ：" + JSON.stringify(this.attr.productAttr));
			},
			ChangeAttrIndex: function(res) {
				//console.log("resresresresres  ：" + res);
				this.$set(this, "selectSkuIndex11", res);
			},
			/**
			 * 属性变动赋值
			 * 
			 */
			ChangeAttr: function(res) {
				let that = this;
				this.$set(this, "selectSku11", res);
				//选中的sku发生变化，重新生成二维码
				that.getQrcode();
				let productSelect = this.productValue[res];
				//console.log("传入选中属性的下标：------------------" + JSON.stringify(productSelect));



				this.$set(this, "selectSku", productSelect);
				if (productSelect) {
					this.$set(this.attr.productSelect, "image", productSelect.image);
					this.$set(this.attr.productSelect, "price", productSelect.price);
					this.$set(this.attr.productSelect, "stock", productSelect.stock);
					this.$set(this.attr.productSelect, "unique", productSelect.id);
					this.$set(this.attr.productSelect, "cart_num", 1);
					this.$set(this.attr.productSelect, "vipPrice", productSelect.vipPrice);
					this.$set(this.attr.productSelect, 'otPrice', productSelect.otPrice);
					this.$set(this.attr.productSelect, "daoshouprice", productSelect.daoshouprice);
					this.$set(this, "attrValue", res);
					this.$set(this, "attrTxt", "已选");
				} else {
					this.$set(this.attr.productSelect, "image", this.productInfo.image);
					this.$set(this.attr.productSelect, "price", '-');
					this.$set(this.attr.productSelect, "stock", 0);
					this.$set(this.attr.productSelect, "unique", this.productInfo.id);
					this.$set(this.attr.productSelect, "cart_num", 1);
					this.$set(this.attr.productSelect, "vipPrice", '-');
					this.$set(this.attr.productSelect, 'otPrice', '-');
					this.$set(this.attr.productSelect, 'daoshouprice', '-');
					this.$set(this, "attrValue", "");
					this.$set(this, "attrTxt", "请选择");
				}
			},
			/**
			 * 领取完毕移除当前页面领取过的优惠券展示
			 */
			ChangCoupons: function(e) {
				let coupon = e;
				let couponList = this.$util.ArrayRemove(this.couponList, 'id', coupon.id);
				this.$set(this, 'couponList', couponList);
				this.getCouponList();
			},

			setClientHeight: function() {
				let that = this;
				if (!that.good_list.length) return;
				let view = uni.createSelectorQuery().in(this).select("#list0");
				view.fields({
					size: true,
				}, data => {
					that.$set(that, 'clientHeight', data.height + 20)
				}).exec();
			},
			/**
			 * 优品推荐
			 * 
			 */
			getGoods() {
				getProductGood().then(res => {
					let good_list = res.data.list || [];
					//let good_list = [];
					let count = Math.ceil(good_list.length / 6);
					let goodArray = new Array();
					for (let i = 0; i < count; i++) {
						let list = good_list.slice(i * 6, i * 6 + 6);
						if (list.length) goodArray.push({
							list: list
						});
					}
					this.$set(this, 'good_list', goodArray);
					let navList = ['商品', '评价', '详情'];
					if (goodArray.length) {
						//navList.splice(2, 0, '推荐')
					}
					this.$set(this, 'navList', navList);
					this.$nextTick(() => {
						if (good_list.length) {
							// #ifndef APP-PLUS
							this.setClientHeight();
							// #endif
							// #ifdef APP-PLUS
							setTimeout(() => {
								this.setClientHeight();
							}, 1000)
							// #endif
						};
					})
				});
			},
			getMaxFq(fq) {
				let numbers = fq.match(/\d+/g).map(Number); // 使用正则表达式匹配数字并转换为数字类型
				let len = numbers.length;
				return numbers[len - 1];
			},
			/**
			 * 获取产品详情
			 * 
			 */
			getGoodsDetails: function() {
				uni.showLoading({
					title: '',
					mask: true
				});
				let that = this;
				getProductDetail(that.id, that.type).then(res => {
					let productInfo = res.data.productInfo;

					that.fqStr = productInfo.fenqi;
					// 字符串数组转数组；
					let arrayImg = productInfo.sliderImage;
					let sliderImage = JSON.parse(arrayImg);
					if (that.getFileType(sliderImage[0]) == 'video') {
						//判断轮播图第一张是否是视频，如果是，就赋值给videoLink，并且将其在轮播图中删除
						this.$set(this, 'videoLink', sliderImage[0]);
						sliderImage.splice(0, 1);
					}

					that.$set(that, 'sliderImage', sliderImage);
					that.$set(that, 'productInfo', productInfo);
					that.$set(that, 'description', productInfo.content);
					that.$set(that, 'userCollect', res.data.userCollect);
					that.$set(that.attr, 'productAttr', res.data.productAttr);
					that.$set(that, 'productValue', res.data.productValue);
					// console.log('-----------------@@@@###  ' + JSON.stringify(that.productValue))
					for (let key in res.data.productValue) {
						let obj = res.data.productValue[key];
						that.skuArr.push(obj)
					}

					this.$set(this, "selectSku", that.skuArr[0]);
					that.$set(that.sharePacket, 'priceName', res.data.priceName);
					that.$set(that.sharePacket, 'isState', Math.floor(res.data.priceName) != 0 ? false : true);
					that.$set(that, 'activityH5', res.data.activityAllH5 ? res.data.activityAllH5 : []);
					uni.setNavigationBarTitle({
						title: productInfo.storeName.substring(0, 7) + "..."
					})

					let productAttr = this.attr.productAttr.map(item => {
						return {
							attrName: item.attrName,
							attrValues: item.attrValues.split(','),
							id: item.id,
							isDel: item.isDel,
							productId: item.productId,
							type: item.type
						}
					});
					this.$set(this.attr, 'productAttr', productAttr);

					// var navList = ['商品', '评价', '详情'];
					// if (goodArray.length) {
					// 	navList.splice(2, 0, '推荐')
					// }
					//that.$set(that, 'navList', navList);
					if (that.isLogin) {
						that.getCartCount();
						//#ifdef H5
						that.make(that.uid);
						that.ShareInfo();
						this.getImageBase64(this.productInfo.image);
						// #endif
						// #ifdef MP
						that.getQrcode();
						// #endif
					};
					setTimeout(function() {
						that.infoScroll();
					}, 100); //500
					// #ifdef MP
					that.imgTop = res.data.productInfo.image
					// #endif
					// #ifndef H5
					that.downloadFilestoreImage();
					// #endif
					that.DefaultSelect();
					setTimeout(() => {
						this.showSkeleton = false
						this.defaultCoupon = this.coupon.list;
					}, 200); //1000
					uni.hideLoading();
				}).catch(err => {
					uni.hideLoading();
					//状态异常返回上级页面
					that.$util.Tips({
						title: err.message.toString()
					}, {
						tab: 3,
						url: 1
					});
					setTimeout(() => {
						this.showSkeleton = false
					}, 500)
				})
			},
			getProductReplyList: function() {
				getReplyProduct(this.id).then(res => {
					this.reply = res.data.productReply ? [res.data.productReply] : [];
				})
			},
			getProductReplyCount: function() {
				let that = this;
				getReplyConfig(that.id).then(res => {
					that.$set(that, 'replyChance', res.data.replyChance * 100);
					that.$set(that, 'replyCount', res.data.sumCount);
				});
			},
			infoScroll: function() {
				var that = this,
					topArr = [],
					heightArr = [];
				//console.log('-----------------@@@@' + JSON.stringify(that.navList))
				for (var i = 0; i < that.navList.length; i++) { //productList
					//获取元素所在位置
					var query = uni.createSelectorQuery().in(this);
					var idView = "#past" + i;
					// if (!that.data.good_list.length && i == 2) {
					//   var idView = "#past" + 3;
					// }
					query.select(idView).boundingClientRect();
					query.exec(function(res) {
						var top = res[0].top;
						var height = res[0].height;
						topArr.push(top);
						heightArr.push(height);
						that.$set(that, 'topArr', topArr);
						that.$set(that, 'heightArr', heightArr);
					});
				};
			},
			/**
			 * 默认选中属性
			 * 
			 */
			DefaultSelect: function() {
				let productAttr = this.attr.productAttr;
				let value = [];
				var that = this;
				let isPrice = 0; //是否传入价格
				let isShared = 0;
				if (parseInt(this.minimumPrice) === 0 || this.minimumPrice === undefined) {
					isPrice = 0;
				} else {
					isPrice = 1;
				}
				if (that.selectSkuIndex11 != null && that.selectSkuIndex11 != "" & that.selectSkuIndex11 !=
					undefined) {
					isShared = 1;
					if (isPrice === 0) {
						var selectskuindexarr = that.selectSkuIndex11.split(",");
						for (let i = 0; i < selectskuindexarr.length; i++) {
							var one = productAttr[i].attrValues[selectskuindexarr[i]]
							value.push(one);
						}
						this.$set(this, "selectSku11", value.join(","));
					}
				} else if (that.selectSku11) {
					//选中传进来的默认值
					if (isPrice === 0) {
						var selectskuarr = that.selectSku11.split(",");
						for (let i = 0; i < selectskuarr.length; i++) {
							value.push(selectskuarr[i]);
						}
					}
				} else {
					//默认选中每种规格的第一个
					if (isPrice === 0) {
						productAttr.forEach(item => {
							value.push(item.attrValues[0]);
						})
					}
				}

				let productSelect = {};
				let noMate = 0; //是否匹配上 0未匹配上 1匹配上
				if (isPrice === 0) {
					noMate = 1;
					for (let i = 0; i < value.length; i++) {
						this.$set(productAttr[i], "index", value[i]);
					}
					productSelect = this.productValue[value.join(",")];
				} else {
					for (let k in this.productValue) {
						//parseFloat(this.productValue[k].price) == this.minimumPrice && this.productValue[k].stock !=0
						if (parseFloat(this.productValue[k].price) == parseFloat(this.minimumPrice)) {
							//console.log('--------------------------------------###' + k)
							noMate = 1;
							productSelect = this.productValue[k];

							for (let i = 0; i < k.split(",").length; i++) {
								value.push(k.split(",")[i]);
							}
							if (isShared === 1) {
								this.$set(this, "selectSku11", value.join(","));
							}
							break;
						}
					}
					//console.log('***#################' + JSON.stringify(value));
					for (let i = 0; i < value.length; i++) {
						this.$set(productAttr[i], "index", value[i]);
					}
				}
				if (noMate === 0) {
					if (that.selectSkuIndex11 != null && that.selectSkuIndex11 != "" & that.selectSkuIndex11 !=
						undefined) {
						var selectskuindexarr = that.selectSkuIndex11.split(",");
						for (let i = 0; i < selectskuindexarr.length; i++) {
							var one = productAttr[i].attrValues[selectskuindexarr[i]]
							value.push(one);
						}
						this.$set(this, "selectSku11", value.join(","));
					} else if (that.selectSku11) {
						//选中传进来的默认值
						var selectskuarr = that.selectSku11.split(",");
						for (let i = 0; i < selectskuarr.length; i++) {
							value.push(selectskuarr[i]);
						}
					} else {
						//默认选中每种规格的第一个
						productAttr.forEach(item => {
							value.push(item.attrValues[0]);
						})
					}
					for (let i = 0; i < value.length; i++) {
						this.$set(productAttr[i], "index", value[i]);
					}
					productSelect = this.productValue[value.join(",")];
				}
				//sort();排序函数:数字-英文-汉字；
				if (productSelect && productAttr.length) {
					this.$set(this.attr.productSelect, "storeName", this.productInfo.storeName);
					this.$set(this.attr.productSelect, "image", productSelect.image);
					this.$set(this.attr.productSelect, "price", productSelect.price);
					this.$set(this.attr.productSelect, "stock", productSelect.stock);
					this.$set(this.attr.productSelect, "unique", productSelect.id);
					this.$set(this.attr.productSelect, "cart_num", 1);
					this.$set(this.attr.productSelect, "vipPrice", productSelect
						.vipPrice); //attr.productSelect.otPrice
					this.$set(this.attr.productSelect, 'otPrice', productSelect.otPrice);
					this.$set(this.attr.productSelect, 'daoshouprice', productSelect.daoshouprice);

					this.$set(this, "attrValue", value.join(","));
					this.$set(this, "attrTxt", "已选");
					//console.log('&&&&&&&&！！！！！！！！！！！！' + JSON.stringify(this.attr))
				} else if (!productSelect && productAttr.length) {
					this.$set(this.attr.productSelect, "storeName", this.productInfo.storeName);
					this.$set(this.attr.productSelect, "image", this.productInfo.image);
					this.$set(this.attr.productSelect, "price", this.productInfo.price);
					this.$set(this.attr.productSelect, "stock", 0);
					this.$set(this.attr.productSelect, "unique", this.productInfo.id);
					this.$set(this.attr.productSelect, "cart_num", 1);
					this.$set(this.attr.productSelect, "vipPrice", this.productInfo.vipPrice);
					this.$set(this.attr.productSelect, 'otPrice', this.productInfo.otPrice);
					this.$set(this.attr.productSelect, 'daoshouprice', this.productInfo.daoshouprice);
					this.$set(this, "attrValue", "");
					this.$set(this, "attrTxt", "请选择");
				} else if (!productSelect && !productAttr.length) {
					this.$set(this.attr.productSelect, "storeName", this.productInfo.storeName);
					this.$set(this.attr.productSelect, "image", this.productInfo.image);
					this.$set(this.attr.productSelect, "price", this.productInfo.price);
					this.$set(this.attr.productSelect, "stock", this.productInfo.stock);
					this.$set(this.attr.productSelect, "unique", this.productInfo.id || "");
					this.$set(this.attr.productSelect, "cart_num", 1);
					this.$set(this.attr.productSelect, "vipPrice", this.productInfo.vipPrice);
					this.$set(this.attr.productSelect, 'otPrice', this.productInfo.otPrice);
					this.$set(this.attr.productSelect, 'daoshouprice', this.productInfo.daoshouprice);
					this.$set(this, "attrValue", "");
					this.$set(this, "attrTxt", "请选择");
				}
				this.showQh(productSelect);
			},
			showQh(productSelect) {
				let that = this;
				let temporaryc = []; //中间临时变量
				let deepc = []; //深拷贝一份用
				let indexs = []; //sku下标记录
				for (var i = 0; i < that.attr.productAttr.length; i++) {
					deepc.push(that.attr.productAttr[i].attrValues)
					indexs.push(that.attr.productAttr[i].index)
				}

				temporaryc = JSON.parse(JSON.stringify(deepc));
				this.markQh = JSON.parse(JSON.stringify(deepc));

				for (var i = 0; i < temporaryc.length; i++) {
					let abc = JSON.parse(JSON.stringify(indexs));
					for (var j = 0; j < temporaryc[i].length; j++) {
						if (i === 0) { //第一排 
							let fff = 0;
							for (let k in that.productValue) {
								if (k.indexOf(temporaryc[i][j]) !== -1) {
									if (that.productValue[k]['stock'] > 0) {
										fff = 1;
									}
								}
							}
							if (fff === 1) { //不缺货
								this.markQh[i][j] = '1';
							} else { //缺货
								this.markQh[i][j] = '0';
							}
						} else { //下边的  只看默认选中的第一排下的  其他的需要切换的时候再去计算
							let fff = 0;
							let sstr = abc.slice(0, i).join(','); //-------------------
							for (let k in that.productValue) {
								// if (k.indexOf(temporaryc[i][j]) !== -1 && k.indexOf(sstr) !== -1) {
								// 	if (that.productValue[k]['stock'] > 0) {
								// 		//console.log('!@#$------555666 ' + k)
								// 		fff = 1;
								// 	}
								// }
								if (k.split(',')[i] === temporaryc[i][j] && k.indexOf(sstr) !== -1) {
									if (that.productValue[k]['stock'] > 0) {
										fff = 1;
									}
								}
							}
							if (fff === 1) { //不缺货
								this.markQh[i][j] = '1';
							} else { //缺货
								this.markQh[i][j] = '0';
							}
						}
					}
				}
				//console.log('!@#$------555 ' + JSON.stringify(this.markQh))
			},
			/**
			 * 通过规格查询趣照价格和京东价格差
			 * 
			 */
			/**
			 * 获取优惠券
			 * 
			 */
			getCouponList(type) {
				let that = this,
					obj = {
						page: 1,
						limit: 20,
						productId: that.id,
						type: type
					};
				if (type != undefined || type != null) {
					obj.type = type;
				} else {
					obj.type = "";
				}
				getCoupons(obj).then(res => {
					that.$set(that.coupon, 'list', res.data);
				});
			},
			async getCouponType() {
				//在onLoad只调用一次，获取默认的类型作为打开优惠券列表的参数，不会随着切换变化
				let dataList = await getCoupons({
					productId: this.id
				});
				if (dataList.length) {
					this.couponDeaultType = dataList.data;
					this.$set(this.coupon, 'type', dataList);
				}

			},
			tabCouponType(type) {
				this.$set(this.coupon, 'type', type);
				this.getCouponList(type);
			},

			ChangCouponsUseState(index) {
				let that = this;
				that.coupon.list[index].isUse = true;
				that.$set(that.coupon, 'list', that.coupon.list);
				that.$set(that.coupon, 'coupon', false);
			},
			/** 
			 * 
			 * 
			 * 收藏商品
			 */
			setCollect: function() {
				let url = '/pages/index/index';
				uni.switchTab({
					url
				})
				this.currentPage = false;
				// let that = this;
				// if (this.isLogin === false) {
				// 	toLogin();
				// } else {
				// 	if (this.userCollect) {
				// 		collectDel(this.productInfo.id).then(res => {
				// 			that.$set(that, 'userCollect', !that.userCollect);
				// 		})
				// 	} else {
				// 		collectAdd(this.productInfo.id).then(res => {
				// 			that.$set(that, 'userCollect', !that.userCollect);
				// 		})
				// 	}
				// }
			},
			/**
			 * 打开属性插件
			 */
			selecAttr: function() {
				this.$refs.pWindow.setPValue(this.productValue);
				this.$set(this.attr, 'cartAttr', true);
				this.$set(this, 'isOpen', true);
			},
			/**
			 * 打开优惠券插件
			 */
			couponTap: function() {
				let that = this;
				if (that.isLogin === false) {
					toLogin();
				} else {
					that.getCouponList(this.couponDeaultType[0].useType); //打开弹框默认请求商品券
					that.$set(that.coupon, 'coupon', true);
				}
			},
			onMyEvent: function() {
				this.$set(this.attr, 'cartAttr', false);
				this.$set(this, 'isOpen', false);
			},
			/**
			 * 打开属性加入购物车
			 * 
			 */
			joinCart: function(e) {
				//是否登录
				if (this.isLogin === false) {
					toLogin();
				} else {
					this.goCat(1);
				}
			},
			/*
			 * 加入购物车
			 */
			goCat: function(num) {
				let that = this,
					productSelect = that.productValue[this.attrValue];

				// console.log("加入购物车：选中属性："+this.attrValue);
				//打开属性
				if (that.attrValue) {
					//默认选中了属性，但是没有打开过属性弹窗还是自动打开让用户查看默认选中的属性
					that.attr.cartAttr = !that.isOpen ? true : false;
					this.$refs.pWindow.setPValue(this.productValue);
				} else {
					if (that.isOpen) that.attr.cartAttr = true;
					else that.attr.cartAttr = !that.attr.cartAttr;
				}
				if (typeof productSelect == 'undefined') {
					return that.$util.Tips({
						title: "产品库存不足，请选择其它"
					});
				}
				//只有关闭属性弹窗时进行加入购物车
				if (that.attr.cartAttr === true && that.isOpen === false)
					return (that.isOpen = true);
				//如果有属性,没有选择,提示用户选择
				if (
					that.attr.productAttr.length &&
					productSelect.stock === 0 &&
					that.isOpen === true
				)
					return that.$util.Tips({
						title: "产品库存不足，请选择其它"
					});
				if (num === 1) {
					let q = {
						productId: parseFloat(that.id),
						cartNum: parseFloat(that.attr.productSelect.cart_num),
						isNew: false,
						productAttrUnique: that.attr.productSelect !== undefined ?
							that.attr.productSelect.unique : that.productInfo.id
					};
					postCartAdd(q).then(function(res) {
							that.isOpen = false;
							that.attr.cartAttr = false;
							that.$util.Tips({
								title: "添加购物车成功",
								success: () => {
									that.getCartCount(true);
								}
							});
						})
						.catch(res => {
							that.isOpen = false;
							return that.$util.Tips({
								title: res
							});
						});
				} else {
					this.getPreOrder();
				}
			},
			/**
			 * 获取购物车数量
			 * @param boolean 是否展示购物车动画和重置属性
			 */
			getCartCount: function(isAnima) {
				let that = this;
				const isLogin = that.isLogin;
				if (isLogin) {
					getCartCounts(true, 'total').then(res => {
						that.CartCount = res.data.count;
						//加入购物车后重置属性
						if (isAnima) {
							that.animated = true;
							setTimeout(function() {
								that.animated = false;
							}, 500);
						}
					});
				}
			},
			/**
			 * 立即购买
			 */
			goBuy: Debounce(function(e) {
				if (this.isLogin === false) {
					if (this.isSelected === false) {
						this.isSelected = true;
						toLogin();
					}
				} else {
					this.goCat(0);
				}
			}),
			/**
			 * 预下单
			 */
			getPreOrder: function() {
				// console.log('!!!   ' + this.type)
				// console.log(parseFloat(this.attr.productSelect.unique))
				// console.log(this.id)
				// console.log(this.attr.productSelect.cart_num)
				// return;
				this.$Order.getPreOrder(this.type === 'normal' ? 'buyNow' : 'video', [{
					"attrValueId": parseFloat(this.attr.productSelect.unique),
					"productId": parseFloat(this.id),
					"productNum": parseFloat(this.attr.productSelect.cart_num)
				}]);
			},
			// 授权关闭
			authColse: function(e) {
				this.isShowAuth = e
			},
			/**
			 * 分享打开
			 * 
			 */
			listenerActionSheet: function() {
				if (this.isLogin === false) {
					toLogin();
				} else {
					// #ifdef H5
					if (this.$wechat.isWeixin() === true) {
						this.weixinStatus = true;
					}
					// #endif
					this.goPoster()
					this.posters = true;
				}
			},
			closePosters: function() {
				this.posters = false;
				this.currentPage = false;
			},
			//隐藏海报
			posterImageClose: function() {
				this.canvasStatus = false
				this.posters = false;
			},
			//替换安全域名
			setDomain: function(url) {
				url = url ? url.toString() : '';
				//本地调试打开,生产请注销
				if (url.indexOf("https://") > -1) return url;
				else return url.replace('http://', 'https://');
			},
			//获取海报产品图（解决跨域问题，只适用于小程序）
			downloadFilestoreImage: function() {
				let that = this;
				uni.downloadFile({
					url: that.setDomain(that.productInfo.image),
					success: function(res) {
						that.storeImage = res.tempFilePath;
					},
					fail: function() {
						return that.$util.Tips({
							title: ''
						});
						that.storeImage = '';
					},
				});
			},
			// 小程序关闭分享弹窗；
			goFriend: function() {
				this.posters = false;
			},
			// 小程序二维码
			getQrcode() {
				let that = this;
				console.log("---生成小程序二维码原始参数：" + that.selectSkuIndex11.replaceAll(",", ";"));
				var aa = that.selectSkuIndex11.replaceAll(",", ";");
				console.log("---生成小程序码携带参数seli：" + aa);
				// let data = {
				// 	pid: that.uid,
				// 	id: that.id,
				// 	path: 'pages/goods_details/index',
				// 	seli: aa,
				// 	price: that.attr.productSelect.price,
				// }
				let data = {
					p: that.uid,
					i: that.id,
					path: 'pages/goods_details/index',
					s: aa,
					r: that.attr.productSelect.price,
				}
				getQrcode(data).then(res => {
					base64src(res.data.code, Date.now(), res => {
						that.PromotionCode = res;
						console.log("@@@@@@@@@@@@@@@@@@@@@@@@@@@@小程序二维码：" + res)
					});

				}).catch(err => {
					that.errT = err;
				});
			},
			// 生成二维码；
			make(uid) {
				let href = location.href.split('?')[0] + "?id=" + this.id + "&spread=" + this.uid;
				uQRCode.make({
					canvasId: 'qrcode',
					text: href,
					size: this.qrcodeSize,
					margin: 10,
					success: res => {
						this.PromotionCode = res;
					},
					complete: () => {},
					fail: res => {
						this.$util.Tips({
							title: '海报二维码生成失败！'
						});
					}
				})
			},
			getImageBase64: function(images) {
				let that = this;
				imageBase64({
					url: images
				}).then(res => {
					that.imgTop = res.data.code;
				})
			},
			/**
			 * 获取产品分销二维码
			 * @param function successFn 下载完成回调
			 *
			 */
			downloadFilePromotionCode: function(successFn) {
				let that = this;
				getProductCode(that.id)
					.then(res => {
						uni.downloadFile({
							url: that.setDomain(res.data.code),
							success: function(res) {
								that.$set(that, 'isDown', false);
								if (typeof successFn == 'function') successFn && successFn(res
									.tempFilePath);
								else that.$set(that, 'PromotionCode', res.tempFilePath);
							},
							fail: function() {
								that.$set(that, 'isDown', false);
								that.$set(that, 'PromotionCode', '');
							}
						});
					})
					.catch(err => {
						that.$set(that, 'isDown', false);
						that.$set(that, 'PromotionCode', '');
					});
			},
			/**
			 * 生成海报
			 */
			goPoster: function() {
				let that = this;
				uni.showLoading({
					title: '海报生成中',
					mask: true
				});
				that.posters = false;
				let arrImagesUrl = '';
				let arrImagesUrlTop = '';

				if (!that.PromotionCode) {
					uni.hideLoading();
					that.$util.Tips({
						title: that.errT
					});
					return
				}

				setTimeout(() => {
					if (!that.imgTop) {
						uni.hideLoading();
						that.$util.Tips({
							title: '无法生成商品海报！'
						});
						return
					}
				}, 1000);
				console.log('！！！！！！！！！！*********' + that.imgTop)
				uni.downloadFile({
					url: that.imgTop, //仅为示例，并非真实的资源
					success: (res) => {
						arrImagesUrlTop = res.tempFilePath;
						// console.log("生成的路径："+arrImagesUrlTop);
						console.log("111--" + that.PromotionCode);
						let arrImages = [that.posterbackgd, arrImagesUrlTop, that.PromotionCode];
						let storeName = that.productInfo.storeName;
						//let price = that.productInfo.price;
						let price = that.attr.productSelect.price !== null ? that.attr.productSelect
							.price : that.productInfo.price;
						setTimeout(() => {
							console.log("-----！！！！！   " + arrImages);
							that.$util.PosterCanvas(arrImages, storeName, price, that.productInfo
								.otPrice,
								function(tempFilePath) {
									that.imagePath = tempFilePath;
									console.log('*********' + that.imagePath)
									that.canvasStatus = true;
									uni.hideLoading();
								});
						}, 500);
					},
					fail: (err) => {
						// return that.$util.Tips({
						// 	title: JSON.stringify(err)
						// });
					},
				});
			},
			// 图片预览；
			getpreviewImage: function() {
				if (this.imagePath) {
					let photoList = [];
					photoList.push(this.imagePath)
					uni.previewImage({
						urls: photoList,
						current: this.imagePath
					});
				} else {
					this.$util.Tips({
						title: '您的海报尚未生成'
					});
				}
			},
			/*
			 * 保存到手机相册
			 */
			// #ifdef MP
			savePosterPath: function() {
				let that = this;
				uni.getSetting({
					success(res) {
						if (!res.authSetting['scope.writePhotosAlbum']) {
							uni.authorize({
								scope: 'scope.writePhotosAlbum',
								success() {
									uni.saveImageToPhotosAlbum({
										filePath: that.imagePath,
										success: function(res) {
											that.posterImageClose();
											that.$util.Tips({
												title: '保存成功',
												icon: 'success'
											});
										},
										fail: function(res) {
											that.$util.Tips({
												title: '保存失败'
											});
										}
									})
								}
							})
						} else {
							uni.saveImageToPhotosAlbum({
								filePath: that.imagePath,
								success: function(res) {
									that.posterImageClose();
									that.$util.Tips({
										title: '保存成功',
										icon: 'success'
									});
								},
								fail: function(res) {
									that.$util.Tips({
										title: '保存失败'
									});
								},
							})
						}
					}
				})
			},
			// #endif
			ShareInfo() {
				let data = this.productInfo;
				let href = location.href;
				if (this.$wechat.isWeixin()) {
					href = href.indexOf("?") === -1 ? href + "?spread=" + this.uid : href + "&spread=" + this.uid;
					let configAppMessage = {
						desc: data.storeInfo,
						title: data.storeName,
						link: href,
						imgUrl: data.image
					};
					this.$wechat.wechatEvevt([
						"updateAppMessageShareData",
						"updateTimelineShareData",
						"onMenuShareAppMessage",
						"onMenuShareTimeline"
					], configAppMessage).then(res => {
						// console.log(res);
					}).catch(err => {
						console.log(err);
					})
				}
			},
			showShare(status) {
				let that = this;
				that.$set(that.sharePacket, 'touchstart', status);
			},
			hideNav() {
				this.currentPage = false;
			},
			//下拉导航页面跳转
			linkPage(url) {
				if (url == '/pages/index/index') {
					uni.switchTab({
						url
					})
				} else {
					uni.navigateTo({
						url
					})
				}
				this.currentPage = false
			},
			//点击sku图片打开轮播图
			showImg(index) {
				this.$refs.cusPreviewImg.open(this.selectSku.suk)
			},
			//滑动轮播图选择商品
			changeSwitch(e) {
				let productSelect = this.skuArr[e];
				this.$set(this, 'selectSku', productSelect);
				var skuList = productSelect.suk.split(',');
				skuList.forEach((i, index) => {
					this.$set(this.attr.productAttr[index], 'index', skuList[index]);
				})
				if (productSelect) {
					this.$set(this.attr.productSelect, "image", productSelect.image);
					this.$set(this.attr.productSelect, "price", productSelect.price);
					this.$set(this.attr.productSelect, "stock", productSelect.stock);
					this.$set(this.attr.productSelect, "unique", productSelect.id);
					this.$set(this.attr.productSelect, "vipPrice", productSelect.vipPrice);
					this.$set(this, "attrTxt", "已选");
					this.$set(this, "attrValue", productSelect.suk)
				}
			},
			getFileType(fileName) {
				// 后缀获取
				let suffix = '';
				// 获取类型结果
				let result = '';
				try {
					const flieArr = fileName.split('.');
					suffix = flieArr[flieArr.length - 1];
				} catch (err) {
					suffix = '';
				}
				// fileName无后缀返回 false
				if (!suffix) {
					return false;
				}
				suffix = suffix.toLocaleLowerCase();
				// 图片格式
				const imglist = ['png', 'jpg', 'jpeg', 'bmp', 'gif'];
				// 进行图片匹配
				result = imglist.find(item => item === suffix);
				if (result) {
					return 'image';
				}
				// 匹配 视频
				const videolist = ['mp4', 'm2v', 'mkv', 'rmvb', 'wmv', 'avi', 'flv', 'mov', 'm4v'];
				result = videolist.find(item => item === suffix);
				if (result) {
					return 'video';
				}
				// 其他 文件类型
				return 'other';
			},
			videoPause() {

			},
			backTop() {
				let that = this;
				setTimeout(() => {
					that.scrollY = 0;
					that.scrollTop = Math.random();
					//console.log(that.scrollTop)
				}, 100);
			},
		},
	}
</script>

<style scoped lang="scss">
	.borRadius15 {
		width: 100%;
		height: auto;
		background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
		box-shadow: 0rpx 1rpx 18rpx 0rpx #EEEEEE;
		border-radius: 48rpx 48rpx 0rpx 0rpx;
		margin-bottom: 15rpx;
	}

	.product-con .wrapper {
		padding: 10rpx 24rpx;
		margin-top: 30rpx;
	}

	.product-con .userEvaluation .title {
		padding: 0 0rpx 0 24rpx;
	}

	.product-con .userEvaluation .title .praise {
		margin-right: 24rpx;
	}

	.box_9 {
		background-color: rgba(255, 255, 255, 1.000000);
		border-radius: 24rpx;
		align-self: center;
		// margin-top: 30rpx;
		display: flex;
		flex-direction: column;
		padding: 32rpx 24rpx 10rpx 24rpx;
	}

	.block_2 {
		// margin-right: 28rpx;
		flex-direction: row;
		display: flex;
	}

	.text_15 {
		overflow-wrap: break-word;
		color: rgba(128, 128, 128, 1);
		font-size: 28rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
	}

	.text_16 {
		// overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 28rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		width: 500rpx;
		line-height: 40rpx;
		margin-left: 42rpx;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap
	}

	.thumbnail_6 {
		width: 28rpx;
		height: 24rpx;
		margin: 11rpx 0 11rpx 30rpx;
	}

	.thumbnail_66 {
		width: 28rpx;
		height: 24rpx;
		margin: 11rpx 0 11rpx 10rpx;
	}

	.block_3 {
		width: 531rpx;
		flex-direction: row;
		display: flex;
		justify-content: space-between;
		margin: 16rpx 57rpx 0 98rpx;
	}

	.list_2 {
		width: 356rpx;
		height: 60rpx;
		flex-direction: row;
		display: flex;
		justify-content: space-between;
	}

	.text_17 {
		overflow-wrap: break-word;
		color: rgba(128, 128, 128, 1);
		font-size: 24rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 33rpx;
		margin-top: 14rpx;
	}

	.section_5 {
		background-color: rgba(245, 247, 250, 1.000000);
		width: 100%;
		height: 1rpx;
		margin-top: 20rpx;
		margin-bottom: 20rpx;
		display: flex;
		flex-direction: column;
	}

	.block_4 {
		flex-direction: row;
		display: flex;
		margin: 32rpx 28rpx 0 0;
	}

	.text_18 {
		overflow-wrap: break-word;
		color: rgba(128, 128, 128, 1);
		font-size: 28rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
	}

	.text-group_9 {
		margin-left: 42rpx;
		display: flex;
		flex-direction: column;
	}

	.text_19 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 28rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
		margin-right: 288rpx;
	}

	.text-wrapper_4 {
		width: 540rpx;
		height: 80rpx;
		overflow-wrap: break-word;
		font-size: 0rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		line-height: 40rpx;
		margin-top: 9rpx;
	}

	.text_20 {
		width: 540rpx;
		height: 80rpx;
		overflow-wrap: break-word;
		color: rgba(233, 52, 21, 1.000000);
		font-size: 26rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		line-height: 40rpx;
	}

	.text_21 {
		width: 540rpx;
		height: 80rpx;
		overflow-wrap: break-word;
		color: rgba(128, 128, 128, 1.000000);
		font-size: 26rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		line-height: 40rpx;
	}

	.thumbnail_3 {
		width: 10rpx;
		height: 18rpx;
		margin: 11rpx 0 100rpx 10rpx;
	}

	.section_7 {
		background-color: rgba(245, 247, 250, 1.000000);
		width: 100%;
		height: 1rpx;
		margin-top: 32rpx;
		display: flex;
		flex-direction: column;
	}

	.section_8 {
		// width: 662rpx;
		// background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPng2ef552905ba06fa7d1eab0029e85195a00359915c87f927a378b75622e364f0d) 100% no-repeat;
		// background-size: 100% 100%;
		// flex-direction: row;
		// display: flex;
		// justify-content: space-between;
		// margin: 32rpx 24rpx 0 0;
		// padding: 16rpx 4rpx 16rpx 24rpx;
	}

	.image_1 {
		width: 100%;
		// margin: 17rpx 0 16rpx 0;
	}

	.text_22 {
		overflow-wrap: break-word;
		color: rgba(118, 65, 30, 1);
		font-size: 30rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 50rpx;
		margin-top: 8rpx;
	}


	.block_5 {
		flex-direction: row;
		display: flex;
		margin: 24rpx 97rpx 0 0;
	}

	.text_23 {
		overflow-wrap: break-word;
		color: rgba(128, 128, 128, 1);
		font-size: 28rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
	}

	.image-text_7 {
		width: 150rpx;
		margin-left: 42rpx;
		flex-direction: row;
		display: flex;
		justify-content: space-between;
	}

	.label_5 {
		width: 28rpx;
		height: 28rpx;
		margin: 6rpx 0 6rpx 0;
	}

	.text-group_5 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 28rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
	}

	.label_6 {
		width: 28rpx;
		height: 28rpx;
		margin: 6rpx 0 6rpx 10rpx;
	}

	.text_24 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 28rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
		margin-left: 10rpx;
	}



	.text_25 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 28rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
		margin-left: 10rpx;
	}

	.block_6 {
		flex-direction: row;
		display: flex;
		margin: 10rpx 0rpx 0 96rpx;
	}

	.image-text_8 {
		width: 250rpx;
		flex-direction: row;
		display: flex;
		justify-content: space-between;
	}

	.label_8 {
		width: 28rpx;
		height: 28rpx;
		margin: 6rpx 0 6rpx 0rpx;
	}

	.text-group_6 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 28rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
		margin-right: 10rpx;
	}


	.text_26 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 28rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
		margin-left: 10rpx;
	}

	.thumbnail_4 {
		width: 28rpx;
		height: 24rpx;
		// margin: 11rpx 0 11rpx 74rpx;
		margin-left: auto;
	}

	.block_7 {
		width: 320rpx;
		flex-direction: row;
		display: flex;
		justify-content: space-between;
		margin: 10rpx 268rpx 0 96rpx;
	}

	.image-text_9 {
		width: 150rpx;
		flex-direction: row;
		display: flex;
		justify-content: space-between;
	}

	.label_10 {
		width: 28rpx;
		height: 28rpx;
		margin: 6rpx 0 6rpx 0;
	}

	.text-group_7 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 28rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
	}

	.image-text_10 {
		width: 150rpx;
		flex-direction: row;
		display: flex;
		justify-content: space-between;
	}

	.text-group_8 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 28rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
	}

	.box_15 {
		width: 676rpx;
		flex-direction: row;
		display: flex;
		justify-content: space-between;
		margin: 13rpx 10rpx 0 0;
	}

	.text-group_10 {
		display: flex;
		flex-direction: column;
		width: 634rpx;
	}

	.text_13 {
		width: 608rpx;
		height: auto;
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 32rpx;
		font-family: PingFang-SC-Bold;
		font-weight: normal;
		text-align: left;
		line-height: 50rpx;
		margin-left: 10rpx
	}

	.text_14 {
		overflow-wrap: break-word;
		color: rgba(128, 128, 128, 1);
		font-size: 26rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 34rpx;
		margin: 12rpx 480rpx 0 20rpx;
	}

	.image-text_12 {
		margin: 20rpx 30rpx 0rpx 0;
	}

	.label_4 {
		width: 50rpx;
		height: 50rpx;
		align-self: center;
	}

	.text-group_3 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 18rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 18rpx;
		margin-top: 6rpx;
	}

	.box_4 {
		background-color: rgba(253, 236, 236, 1.000000);
		border-radius: 20rpx;
		// margin-top: 16rpx;
		display: flex;
		flex-direction: column;
		padding: 23rpx 28rpx 12rpx 24rpx;
		margin-top: 10rpx;
	}

	.block_9 {
		width: 422rpx;
		margin-right: 212rpx;
		flex-direction: row;
		display: flex;
		justify-content: space-between;
	}

	.text-wrapper_2 {
		width: auto;
		height: 60rpx;
		overflow-wrap: break-word;
		font-size: 0rpx;
		font-family: DINAlternate-Bold;
		font-weight: 700;
		text-align: left;
		white-space: nowrap;
		line-height: 60rpx;
		margin: 1rpx 0 1rpx 0;
	}

	.text_7 {
		overflow-wrap: break-word;
		color: rgba(233, 52, 21, 1.000000);
		font-size: 32rpx;
		font-family: DINAlternate-Bold;
		font-weight: 700;
		text-align: left;
		white-space: nowrap;
		line-height: 60rpx;
	}

	.text_8 {
		overflow-wrap: break-word;
		color: rgba(233, 52, 21, 1.000000);
		font-size: 52rpx;
		font-family: DINAlternate-Bold;
		font-weight: 700;
		text-align: left;
		white-space: nowrap;
		line-height: 60rpx;
	}

	.box_6 {
		background-color: rgba(233, 52, 21, 1.000000);
		border-radius: 100rpx;
		width: auto;
		flex-direction: row;
		display: flex;
		justify-content: space-between;
		padding: 1rpx 28rpx 1rpx 20rpx;
		margin-left: 10rpx;
	}

	.text-wrapper_3 {
		width: 146rpx;
		height: 40rpx;
		overflow-wrap: break-word;
		font-size: 0rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
		margin: 9rpx 0 11rpx 0;
	}

	.text_9 {
		overflow-wrap: break-word;
		color: rgba(255, 255, 255, 1.000000);
		font-size: 26rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
	}

	.text_10 {
		overflow-wrap: break-word;
		color: rgba(255, 255, 255, 1.000000);
		font-size: 32rpx;
		font-family: DINAlternate-Bold;
		font-weight: 700;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
	}

	.text_11 {
		overflow-wrap: break-word;
		color: rgba(255, 255, 255, 1);
		font-size: 52rpx;
		font-family: DINAlternate-Bold;
		font-weight: 700;
		text-align: left;
		white-space: nowrap;
		line-height: 60rpx;
	}

	.block_10 {
		width: 100%;
		margin-top: 15rpx;
		flex-direction: row;
		display: flex;
		justify-content: space-between;
	}

	.text_12 {
		overflow-wrap: break-word;
		color: rgba(233, 52, 21, 1);
		font-size: 26rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 37rpx;
	}

	.image-text_11 {
		width: 74rpx;
		flex-direction: row;
		display: flex;
		justify-content: space-between;
	}

	.text-group_1 {
		overflow-wrap: break-word;
		color: rgba(233, 52, 21, 1);
		font-size: 26rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 37rpx;
	}

	.thumbnail_7 {
		width: 20rpx;
		height: 18rpx;
		margin: 10rpx 0 9rpx 0;
	}

	.text-wrapper_16 {
		display: flex;
		width: 100%;
		justify-content: center;
		margin-top: 40rpx;
	}

	.text_51 {
		color: #292929;
		font-size: 30rpx;
		font-family: PingFangSC-Semibold, sans-serif;
	}

	.pyLabel {
		border-radius: 100pt 100pt 100pt 0pt;
		background: #E93415;
		display: flex;
		color: white;
		height: 50rpx;
		margin-left: 10rpx;
		line-height: 50rpx;
		margin-top: -8rpx;
		padding: 0rpx 14rpx;
	}

	.pyTag {
		font-size: 20rpx;
		font-family: PingFangSC-Semibold, sans-serif;
	}

	.pyPrice {
		font-size: 38rpx;
		margin-left: 10rpx;
		font-family: DIN Alternate Bold;
	}

	.zpTag {
		background: #FFEBEC;
		border-radius: 6rpx;
		padding: 5rpx 20rpx;
		color: #E93415;
		width: 200rpx;
		font-weight: Medium;
		font-family: PingFangSC-Medium, sans-serif;
		font-size: 26rpx;
	}

	.text-wrapper_9 {
		width: 87rpx;
		height: 58rpx;
		overflow-wrap: break-word;
		font-size: 0rpx;
		font-family: DINAlternate-Bold;
		font-weight: 700;
		text-align: left;
		white-space: nowrap;
		line-height: 35rpx;
		padding-top: 30rpx;
		margin-left: 30rpx;
	}

	.text_32 {
		height: 58rpx;
		overflow-wrap: break-word;
		color: rgba(233, 52, 21, 1.000000);
		font-size: 30rpx;
		font-family: DINAlternate-Bold;
		font-weight: 700;
		text-align: left;
		white-space: nowrap;
		line-height: 35rpx;
	}

	.text_33 {
		height: 58rpx;
		overflow-wrap: break-word;
		color: rgba(233, 52, 21, 1.000000);
		font-size: 50rpx;
		font-family: DINAlternate-Bold;
		font-weight: 700;
		text-align: left;
		white-space: nowrap;
		line-height: 35rpx;
	}

	.box_19 {
		width: 356rpx;
		height: 98rpx;
		padding: 0 19rpx 0 68rpx;
		line-height: 98rpx;
	}

	.text_34 {
		overflow-wrap: break-word;
		color: rgba(255, 255, 255, 1);
		font-size: 30rpx;
		font-family: PingFang-SC-Bold;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 50rpx;
	}

	.aaa {
		width: 100%;
		height: 98rpx;
		background: no-repeat;
		background-size: 100% 98rpx;
		// padding: 0 19rpx 0 68rpx;
		display: flex;
		border-radius: 24rpx;
	}

	.bbb {
		width: 100%;
		height: 350rpx;
		//background: linear-gradient(#ED4639, #F99C8B);
		background: linear-gradient(#ED4639, #F5F5F5);
		border-radius:
			24rpx 24rpx 0 0;
	}

	.bbbccc {
		margin-bottom: 30rpx;
		margin-top: 20rpx;
		height: auto;
	}

	.ccc {
		width: calc(100% - 40rpx);
		margin-left: 20rpx;
		margin-right: 20rpx;
		margin-top: -260rpx;
		height: auto;
		background: linear-gradient(#FFE8E9, #FFFFFF);
		border: 1px solid #FFFFFF;
		box-shadow: inset 0px 0px #FFFFFF;
		border-radius: 16rpx;
	}

	.text-wrapper_8 {
		width: 100%;
		text-align: center;
		padding-top: 20rpx;
	}

	.text_31 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 30rpx;
		font-family: PingFang-SC-Bold;
		font-weight: normal;
		text-align: center;
		// white-space: nowrap;
		line-height: 42rpx;
		margin: 0 40rpx;
		width: calc(100% - 80rpx);
	}

	.logoview {
		width: 100%;
		text-align: center;
		padding-top: 25rpx;
		height: 84rpx;
	}

	.logoimg {
		width: 198rpx;
		height: 35rpx;
	}

	.box_13 {
		width: 100%;
		text-align: center;
		margin-top: 10rpx;
		// height: 252rpx;
		margin-left: 20rpx;
		margin-right: 20rpx;
		width: calc(100% - 40rpx);
		background: no-repeat;
		background-size: 100% 252rpx;
		padding: 13rpx 28rpx 14rpx 20rpx;
	}

	.box_20 {
		flex-direction: row;
		display: flex;
		margin: 10rpx 16rpx 0 36rpx;
		width: 100%; //----------------------------------------------------------
	}

	.text_35 {
		overflow-wrap: break-word;
		color: rgba(255, 255, 255, 1);
		font-size: 30rpx;
		font-family: PingFangSC-Semibold;
		font-weight: 600;
		text-align: left;
		white-space: nowrap;
		line-height: 42rpx;
		margin-top: 40rpx;
	}

	.text-wrapper_17 {
		display: flex;
		flex-direction: column;
		margin: 0 0 23rpx 10rpx;
	}

	.text_36 {
		overflow-wrap: break-word;
		color: rgba(255, 255, 255, 1);
		font-size: 28rpx;
		font-family: PingFang-SC-Bold;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
		align-self: center;
	}

	.text_37 {
		overflow-wrap: break-word;
		color: rgba(255, 255, 255, 1);
		font-size: 46rpx;
		font-family: DINAlternate-Bold;
		font-weight: 700;
		text-align: left;
		white-space: nowrap;
		line-height: 66rpx;
	}

	.image_3 {
		width: 24rpx;
		height: 20rpx;
		margin: 65rpx 0 52rpx 64rpx;
	}

	.text_38 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 30rpx;
		font-family: PingFangSC-Semibold;
		font-weight: 600;
		text-align: left;
		white-space: nowrap;
		line-height: 42rpx;
		margin: 63rpx 0 0 25rpx;
	}

	.text-wrapper_18 {
		display: flex;
		flex-direction: column;
		margin: 23rpx 0 0 2rpx;
	}

	.text_39 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 28rpx;
		font-family: PingFang-SC-Bold;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
		align-self: center;
	}

	.text_40 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 46rpx;
		font-family: DINAlternate-Bold;
		font-weight: 700;
		text-align: left;
		white-space: nowrap;
		line-height: 66rpx;
	}

	.image_4 {
		width: 24rpx;
		height: 20rpx;
		margin: 68rpx 0 47rpx 25rpx;
	}

	.text_41 {
		overflow-wrap: break-word;
		color: rgba(233, 52, 21, 1);
		font-size: 30rpx;
		font-family: PingFangSC-Semibold;
		font-weight: 600;
		text-align: left;
		white-space: nowrap;
		line-height: 42rpx;
		margin: 63rpx 0 0 25rpx;
	}

	.text-wrapper_19 {
		display: flex;
		flex-direction: column;
		margin: 23rpx 0 0 2rpx;
	}

	.text_42 {
		overflow-wrap: break-word;
		color: rgba(233, 52, 21, 1);
		font-size: 28rpx;
		font-family: PingFang-SC-Bold;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 40rpx;
		margin: 0 12rpx 0 13rpx;
	}

	.text_43 {
		overflow-wrap: break-word;
		color: rgba(233, 52, 21, 1);
		font-size: 46rpx;
		font-family: DINAlternate-Bold;
		font-weight: 700;
		text-align: center;
		white-space: nowrap;
		line-height: 66rpx;
		margin-left: 8rpx;
	}


	.box_21 {
		margin-top: 44rpx;
		flex-direction: row;
		display: flex;
	}

	.text_44 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 24rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 33rpx;
		margin-top: 11rpx;
	}

	.text-wrapper_13 {
		background-color: rgba(255, 255, 255, 1.000000);
		border-radius: 2rpx;
		margin-left: 17rpx;
		display: flex;
		flex-direction: column;
		padding: 2rpx 4rpx 2rpx 2rpx;
	}

	.text_45 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 32rpx;
		letter-spacing: 0rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: center;
		white-space: nowrap;
		line-height: 40rpx;
		width: 40rpx;
	}

	.text_46 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 32rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: center;
		white-space: nowrap;
		line-height: 32rpx;
		margin: 6rpx 0 0 6rpx;
	}

	.text-wrapper_14 {
		background-color: rgba(255, 255, 255, 1.000000);
		border-radius: 2rpx;
		margin-left: 6rpx;
		display: flex;
		flex-direction: column;
		padding: 2rpx 4rpx 2rpx 2rpx;
	}

	.text_47 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 32rpx;
		letter-spacing: 0rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: center;
		white-space: nowrap;
		line-height: 40rpx;
		width: 40rpx;
	}

	.text_48 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 32rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 32rpx;
		margin: 6rpx 0 0 6rpx;
	}

	.text-wrapper_15 {
		background-color: rgba(255, 255, 255, 1.000000);
		border-radius: 2rpx;
		margin-left: 6rpx;
		display: flex;
		flex-direction: column;
		padding: 2rpx 2rpx 2rpx 2rpx;
	}

	.text_49 {
		overflow-wrap: break-word;
		color: rgba(26, 26, 26, 1);
		font-size: 32rpx;
		letter-spacing: 0rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: center;
		white-space: nowrap;
		line-height: 40rpx;
		width: 40rpx;
	}

	.text_50 {
		overflow-wrap: break-word;
		color: rgba(128, 128, 128, 1);
		font-size: 20rpx;
		font-family: PingFangSC-Regular;
		font-weight: normal;
		text-align: left;
		white-space: nowrap;
		line-height: 28rpx;
		margin: 8rpx 0 0 111rpx;
	}




	.toTop {
		text-align: center;
		line-height: 40px;
		position: fixed;
		right: 10rpx;
		bottom: 100px;
		width: 50px;
		height: 50px;
		background: transparent;
		border-radius: 100%;
		animation: fade-in 1s;
	}

	@keyframes fade-in {
		0% {
			opacity: 0;
		}

		100% {
			opacity: 1;
		}
	}

	.icon-fanhuidingbu1:before {
		font-size: 70rpx;
	}

	.product-con .wrapper {
		margin-top: 0rpx;
	}

	.product-con {
		height: 100%;
	}

	.x-money {
		font-size: 28rpx;
		font-weight: 700;
		@include price_color(theme);

	}

	.select_nav {
		width: 170rpx !important;
		height: 60rpx !important;
		border-radius: 33rpx;
		background: rgba(255, 255, 255, 0.3);
		border: 1px solid rgba(0, 0, 0, 0.07);
		color: #000;
		position: fixed;
		font-size: 18px;
		line-height: 62rpx;
		z-index: 1000;
		left: 14rpx;
	}

	.px-20 {
		padding: 0 20rpx 0;
	}

	.nav_line {
		content: '';
		display: inline-block;
		width: 1px;
		height: 34rpx;
		background: #b3b3b3;
		position: absolute;
		left: 0;
		right: 0;
		margin: auto;
	}

	.bgwhite {
		background: #fff;
	}

	.input {
		display: flex;
		align-items: center;
		/* #ifdef MP */
		width: 300rpx;
		/* #endif */
		/* #ifndef MP */
		width: 460rpx;
		/* #endif */
		height: 58rpx;
		padding: 0 0 0 30rpx;
		border: 1px solid rgba(0, 0, 0, 0.07);
		border-radius: 10rpx;
		color: #666;
		font-size: 26rpx;
		position: fixed;
		left: 0;
		right: 0;
		margin: auto;
		background: rgba(255, 255, 255, 0.3);

		.iconfont {
			margin-right: 20rpx;
			font-size: 26rpx;
			color: #666666;
		}
	}

	.container_detail {
		/* #ifdef MP */
		margin-top: 32rpx;
		/* #endif */
	}

	.tab_nav {
		width: 100%;
		height: 48px;
		padding: 0 30rpx 0;
	}

	.right_select {
		width: 58rpx;
		height: 58rpx;
		background: rgba(255, 255, 255, 0.3);
		border: 1px solid rgba(0, 0, 0, 0.1);
		border-radius: 50%;
		position: fixed;
		right: 20rpx;
		text-align: center;
		line-height: 58rpx;
	}

	.dialog_nav {
		position: absolute;
		/* #ifdef MP */
		left: 14rpx;
		/* #endif */
		/* #ifdef H5 || APP-PLUS*/
		right: 14rpx;
		/* #endif */
		width: 240rpx;
		background: #FFFFFF;
		box-shadow: 0px 0px 16rpx rgba(0, 0, 0, 0.08);
		z-index: 310;
		border-radius: 14rpx;

		&::before {
			content: '';
			width: 0;
			height: 0;
			position: absolute;
			/* #ifdef MP */
			left: 0;
			right: 0;
			margin: auto;
			/* #endif */
			/* #ifdef H5 || APP-PLUS */
			right: 8px;
			/* #endif */
			top: -9px;
			border-bottom: 10px solid #F5F5F5;
			border-left: 10px solid transparent;
			/*transparent 表示透明*/
			border-right: 10px solid transparent;
		}
	}

	.dialog_nav_item {
		width: 100%;
		height: 84rpx;
		line-height: 84rpx;
		padding: 0 20rpx 0;
		box-sizing: border-box;
		border-bottom: #eee;
		font-size: 28rpx;
		color: #333;
		position: relative;

		.iconfont {
			font-size: 32rpx;
		}
	}

	.dialog_after {
		::after {
			content: '';
			position: absolute;
			width: 172rpx;
			height: 1px;
			background-color: #EEEEEE;
			bottom: 0;
			right: 0;
		}
	}

	.pl-20 {
		padding-left: 20rpx;
	}

	.activity {
		padding: 0 20rpx;
		@include coupons_border_color(theme);
		@include main_color(theme);
		font-size: 24rpx;
		line-height: 34rpx;
		position: relative;
		margin-left: 4rpx;
	}

	.product-con .wrapper .coupon .activity:before {
		content: ' ';
		position: absolute;
		width: 7rpx;
		height: 10rpx;
		border-radius: 0 7rpx 7rpx 0;
		@include coupons_border_color(theme);
		background-color: #fff !important;
		bottom: 50%;
		left: -3rpx;
		margin-bottom: -6rpx;
		// border-left-color: #fff ;
		@include white_left_border;
	}

	.product-con .wrapper .coupon .activity:after {
		content: ' ';
		position: absolute;
		width: 7rpx;
		height: 10rpx;
		border-radius: 7rpx 0 0 7rpx;
		@include coupons_border_color(theme);
		background-color: #fff;
		right: -3rpx;
		bottom: 50%;
		margin-bottom: -6rpx;
		// border-right-color: #fff;
		@include white_right_border;
	}

	.justify-center {
		justify-content: center;
	}

	.align-center {
		align-items: center;
	}

	.align-baseline {
		align-items: baseline;
	}

	.bg_color {
		@include main_bg_color(theme);
	}

	.vip_icon {
		width: 44rpx;
		height: 28rpx;
	}

	.pl-2 {
		padding-left: 20rpx;
	}

	.vip_money {
		background: #FFE7B9;
		border-radius: 4px;
		font-size: 22rpx;
		color: #333;
		line-height: 28rpx;
		text-align: center;
		padding: 0 6rpx;
		box-sizing: border-box;
		margin-left: -4rpx;
	}

	.theme_price {
		@include price_color(theme);
	}

	.activityName {
		line-height: 44rpx;
	}

	.userEvaluation {
		margin-top: 20rpx;

		i {
			display: inline-block;
		}
	}

	.bntVideo {
		width: auto !important;

		.buy {
			border-radius: 50rpx !important;
		}
	}

	.attribute {
		.line1 {
			width: 600rpx;
		}
	}

	.chat-btn {
		background-color: antiquewhite !important;
	}

	.activity_pin {
		width: auto;
		height: 44rpx;
		line-height: 44rpx;
		// background: linear-gradient(90deg, rgba(233, 51, 35, 1) 0%, rgba(250, 101, 20, 1) 100%);
		@include linear-gradient(theme);
		opacity: 1;
		border-radius: 22rpx;
		padding: 0 15rpx;
		// margin-left: 19rpx;
	}

	.activity_miao {
		width: auto;
		height: 44rpx;
		line-height: 44rpx;
		padding: 0 15rpx;
		// background: linear-gradient(90deg, rgba(250, 102, 24, 1) 0%, rgba(254, 161, 15, 1) 100%);
		@include linear-gradient(theme);
		opacity: 1;
		border-radius: 22rpx;
		margin-left: 19rpx;
	}

	.iconfonts {
		color: #fff !important;
		font-size: 28rpx;
	}

	.activity_title {
		font-size: 24rpx;
		color: #fff;
	}

	.activity_kan {
		width: auto;
		height: 44rpx;
		line-height: 44rpx;
		padding: 0 15rpx;
		@include linear-gradient(theme);
		opacity: 1;
		border-radius: 22rpx;
		margin-left: 19rpx;
	}

	.mask {
		z-index: 300 !important;
	}

	.head-bar {
		background: #fff;
	}

	.generate-posters {
		width: 100%;
		height: 318rpx;
		background-color: #fff;
		position: fixed;
		left: 0;
		bottom: 0;
		z-index: 388;
		transform: translate3d(0, 100%, 0);
		transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
		border-top: 1rpx solid #eee;

		.generateCon {
			height: 220rpx;
		}

		.generateClose {
			height: 98rpx;
			font-size: 28rpx;
			color: #333333;
			border-top: 1px solid #eee;
		}

		.item {
			.pictrue {
				width: 96rpx;
				height: 96rpx;
				border-radius: 50%;
				margin: 0 auto 6rpx auto;

				image {
					width: 100%;
					height: 100%;
					border-radius: 50%;
				}
			}
		}
	}

	.generate-posters.on {
		transform: translate3d(0, 0, 0);
	}

	.generate-posters .item {
		flex: 1;
		text-align: center;
		font-size: 30rpx;
	}

	.generate-posters .item .iconfont {
		font-size: 80rpx;
		color: #5eae72;
	}

	.generate-posters .item .iconfont.icon-haibao {
		color: #5391f1;
	}

	.generate-posters .item .iconfont.icon-haowuquan1 {
		color: #ff954d;
	}

	.product-con .footer {
		padding: 0 20rpx 0 30rpx;
		position: fixed;
		bottom: 0;
		width: 100%;
		box-sizing: border-box;
		background-color: #fff;
		z-index: 277;
		border-top: 1rpx solid #f0f0f0;
		height: 100rpx;
		height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
		height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
	}

	.product-con .footer .item {
		font-size: 18rpx;
		color: #666;
	}

	.product-con .footer .item .iconfont {
		text-align: center;
		font-size: 40rpx;
	}

	.product-con .footer .item .iconfont.icon-shoucang1 {
		@include main_color(theme);
	}

	.product-con .footer .item .iconfont.icon-gouwuche1 {
		font-size: 40rpx;
		position: relative;
	}

	.product-con .footer .item .iconfont.icon-gouwuche1 .num {
		color: #fff;
		position: absolute;
		font-size: 18rpx;
		padding: 2rpx 8rpx 3rpx;
		border-radius: 200rpx;
		top: -10rpx;
		right: -10rpx;
	}

	.product-con .footer .bnt {
		width: 222rpx;
		height: 76rpx;
	}

	.product-con .footer .bnt .bnts {
		width: 222rpx;
		text-align: center;
		line-height: 76rpx;
		color: #fff;
		font-size: 28rpx;
	}

	.product-con .footer .bnt .joinCart {
		border-radius: 50rpx 0 0 50rpx;
		@include left_color(theme);
	}

	.product-con .footer .bnt .buy {
		border-radius: 50rpx;
		@include main_bg_color(theme);
	}

	.product-con .store-info {
		margin-top: 20rpx;
		background-color: #fff;
	}

	.product-con .store-info .title {
		padding: 0 30rpx;
		font-size: 28rpx;
		color: #282828;
		height: 80rpx;
		line-height: 80rpx;
		border-bottom: 1px solid #f5f5f5;
	}

	.product-con .store-info .info {
		padding: 0 30rpx;
		height: 126rpx;
	}

	.product-con .store-info .info .picTxt {
		width: 615rpx;
	}

	.product-con .store-info .info .picTxt .pictrue {
		width: 76rpx;
		height: 76rpx;
	}

	.product-con .store-info .info .picTxt .pictrue image {
		width: 100%;
		height: 100%;
		border-radius: 6rpx;
	}

	.product-con .store-info .info .picTxt .text {
		width: 522rpx;
	}

	.product-con .store-info .info .picTxt .text .name {
		font-size: 30rpx;
		color: #282828;
	}

	.product-con .store-info .info .picTxt .text .address {
		font-size: 24rpx;
		color: #666;
		margin-top: 3rpx;
	}

	.product-con .store-info .info .picTxt .text .address .iconfont {
		color: #707070;
		font-size: 18rpx;
		margin-left: 10rpx;
	}

	.product-con .store-info .info .picTxt .text .address .addressTxt {
		max-width: 480rpx;
	}

	.product-con .store-info .info .iconfont {
		font-size: 40rpx;
	}

	.product-con .superior {
		background-color: #fff;
		margin-top: 30rpx;
		padding: 0 24rpx 30rpx 24rpx;
	}

	.product-con .superior .title {
		height: 98rpx;
	}

	.product-con .superior .title image {
		width: 20rpx;
		height: 20rpx;
	}

	.product-con .superior .title .titleTxt {
		margin: 0 10rpx;
		font-size: 30rpx;
		color: #333333;
	}

	.product-con .superior .slider-banner {
		width: 100%;
		margin: 0 auto;
		position: relative;
	}

	.product-con .superior .slider-banner swiper {
		height: 100%;
		width: 100%;
	}

	.product-con .superior .slider-banner swiper-item {
		height: 100%;
	}

	.product-con .superior .slider-banner .list {
		width: 100%;
	}

	.product-con .superior .slider-banner .list .item {
		width: 198rpx;
		margin: 0 22rpx 30rpx 0;
		font-size: 26rpx;
	}

	.product-con .superior .slider-banner .list .item:nth-of-type(3n) {
		margin-right: 0;
	}

	.product-con .superior .slider-banner .list .item .pictrue {
		position: relative;
		width: 100%;
		height: 198rpx;
	}

	.product-con .superior .slider-banner .list .item .pictrue image {
		width: 100%;
		height: 100%;
		border-radius: 6rpx;
	}

	.product-con .superior .slider-banner .list .item .name {
		color: #282828;
		margin-top: 12rpx;
	}

	.product-con .superior .slider-banner .swiper-pagination-bullet {
		background-color: #999;
	}

	.product-con .superior .slider-banner .swiper-pagination-bullet-active {
		background-color: $theme-color;
	}

	button {
		padding: 0;
		margin: 0;
		line-height: normal;
		background-color: #fff;
	}

	button::after {
		border: 0;
	}

	action-sheet-item {
		padding: 0;
		height: 240rpx;
		align-items: center;
		display: flex;
	}

	.contact {
		font-size: 16px;
		width: 50%;
		background-color: #fff;
		padding: 8rpx 0;
		border-radius: 0;
		margin: 0;
		line-height: 2;
	}

	.contact::after {
		border: none;
	}

	.action-sheet {
		font-size: 17px;
		line-height: 1.8;
		width: 50%;
		position: absolute;
		top: 0;
		right: 0;
		padding: 25rpx 0;
	}

	.canvas {
		position: fixed;
		z-index: -5;
		opacity: 0;
	}

	.poster-pop {
		position: fixed;
		width: 450rpx;
		height: 714rpx;
		top: 50%;
		left: 50%;
		transform: translateX(-50%);
		margin-top: -432rpx;
		z-index: 399;
	}

	.poster-pop image {
		width: 100%;
		height: 100%;
		display: block;
	}

	.poster-pop .close {
		width: 46rpx;
		height: 75rpx;
		position: fixed;
		right: 0;
		top: -73rpx;
		display: block;
	}

	.poster-pop .save-poster {
		background-color: #df2d0a;
		font-size: ：22rpx;
		color: #fff;
		text-align: center;
		height: 76rpx;
		line-height: 76rpx;
		width: 100%;
	}

	.poster-pop .keep {
		color: #fff;
		text-align: center;
		font-size: 25rpx;
		margin-top: 10rpx;
	}

	.mask {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, 0.6);
	}

	.pro-wrapper .iconn {
		background-image: url('');
		width: 100rpx;
		height: 100rpx;
		background-repeat: no-repeat;
		background-size: 100% 100%;
		margin: 0 auto;
	}

	.pro-wrapper .iconn.iconn1 {
		background-image: url('');
	}

	.pictrue_log {
		width: 80upx;
		height: 40upx;
		border-radius: 10upx 0 12upx 0;
		line-height: 40upx;
		font-size: 24upx;
	}

	.pictrue_log_class {
		z-index: 3;
		background: -webkit-gradient(linear, left top, right top, from(rgba(246, 122, 56, 1)), to(rgba(241, 27, 9, 1)));
		background: linear-gradient(90deg, rgba(246, 122, 56, 1) 0%, rgba(241, 27, 9, 1) 100%);
		opacity: 1;
		position: absolute;
		top: 0;
		left: 0;
		color: #fff;
		text-align: center;

	}

	.tab_nav .header {
		width: 100%;
		height: 96rpx;
		padding: 0 30rpx 0;
		font-size: 30rpx;
		color: #050505;
		background-color: #fff;
	}

	.icon-xiangzuo {
		/* #ifdef H5 */
		top: 20rpx !important;
		/* #endif */
	}

	.navbar .header .item {
		position: relative;
		margin: 0 25rpx;
	}

	.navbar .header .item.on:before {
		position: absolute;
		width: 60rpx;
		height: 5rpx;
		background-repeat: no-repeat;
		content: "";
		@include linear-gradient(theme);
		bottom: -10rpx;
		left: 50%;
		margin-left: -28rpx;
	}

	.navbar {
		position: fixed;
		// background-color: #fff;
		top: 0;
		left: 0;
		z-index: 99;
		width: 100%;
	}

	.navbar .navbarH {
		position: relative;
	}

	.navbar .navbarH .navbarCon {
		position: absolute;
		bottom: 0;
		height: 100rpx;
		width: 100%;
	}

	.h5_back {
		color: #000;
		position: fixed;
		left: 20rpx;
		font-size: 32rpx;
		text-align: center;
		width: 58rpx;
		height: 58rpx;
		background: rgba(255, 255, 255, 0.3);
		border: 1px solid rgba(0, 0, 0, 0.1);
		border-radius: 50%;
	}

	.share-box {
		z-index: 1000;
		position: fixed;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.mask_transparent {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: transparent;
		z-index: 300;
	}

	.px-12 {
		padding-left: 12rpx;
		padding-right: 12rpx;
	}

	.font-44 {
		font-size: 44rpx;
	}

	.font_color {
		@include main_color(theme);
	}

	.attrImg {
		width: 66rpx;
		height: 66rpx;
		border-radius: 6rpx;
		display: block;
		margin-right: 14rpx;
	}

	.switchTxt {
		height: 60rpx;
		flex: 1;
		line-height: 60rpx;
		box-sizing: border-box;
		background: #EEEEEE;
		padding-right: 0 24rpx 0;
		border-radius: 8rpx;
		text-align: center;
	}

	.shibie {
		height: 10rpx;
		text-align: justify;
		text-align-last: justify;
		color: #cccccc;
		width: 100%;
		line-height: 10rpx;
		font-size: 12px;
		white-space: nowrap;
	}
</style>